//
//  BConfigVersionRequest.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2019/1/8.
//  Copyright © 2019 guoshikeji. All rights reserved.
//

#import "BConfigVersionRequest.h"

@implementation BConfigVersionRequest

- (NSString *)device_type {
    return @"2";
}
- (NSString *)version {
    return [GeneralParameterManager sharedGeneral].appVersion;
}



- (HttpRequestMethod)requestMethod {
    return POST;
}
- (NSString *)relativelyUrl {
    return V1_Config_Version;
}
- (BOOL)success:(NSURLSessionDataTask *)task data:(id)obj {
    BOOL success = [super success:task data:obj];
    if (success) {
        BConfigVersionResponse *resp = [BConfigVersionResponse yy_modelWithJSON:obj];
        if (self.requestSuccessed) {
            self.requestSuccessed(resp, nil);
        }
    }
    return success;
}

@end
